@@ -69,6 +69,7 @@ gem 'resque', '~> 1.22.0', :require => "resque/server" |
||
| 69 | 69 |
gem 'mixpanel-ruby' |
| 70 | 70 |
gem 'valid_email', :require => 'valid_email/email_validator' |
| 71 | 71 |
gem 'hirb' |
| 72 |
+gem 'wirble' |
|
| 72 | 73 |
|
| 73 | 74 |
group :development do |
| 74 | 75 |
gem "rename" |
@@ -299,6 +299,7 @@ GEM |
||
| 299 | 299 |
rack (>= 1.0.0) |
| 300 | 300 |
warden (1.2.3) |
| 301 | 301 |
rack (>= 1.0) |
| 302 |
+ wirble (0.1.3) |
|
| 302 | 303 |
xpath (2.0.0) |
| 303 | 304 |
nokogiri (~> 1.3) |
| 304 | 305 |
|
@@ -357,3 +358,4 @@ DEPENDENCIES |
||
| 357 | 358 |
uglifier (>= 1.3.0) |
| 358 | 359 |
unicorn |
| 359 | 360 |
valid_email |
| 361 |
+ wirble |
@@ -27,22 +27,20 @@ Second prototype source code of the avalanche network web app. |
||
| 27 | 27 |
|
| 28 | 28 |
## Env Variables |
| 29 | 29 |
|
| 30 |
-```yml |
|
| 31 |
-AWS_ACCESS_KEY_ID: |
|
| 32 |
-AWS_SECRET_ACCESS_KEY: |
|
| 33 |
-AWS_S3_BUCKET: |
|
| 34 |
-AWS_S3_BUCKET_REGION: |
|
| 35 |
-HEROKU_APP_URL: |
|
| 36 |
-MANDRILL_USERNAME: |
|
| 37 |
-MANDRILL_KEY: |
|
| 38 |
-DOMAIN_NAME: |
|
| 39 |
-SERVER_EMAIL: |
|
| 40 |
-DEVISE_SECRET_KEY: |
|
| 41 |
-SECRET_KEY_BASE: |
|
| 42 |
-MAILCHIMP_KEY: |
|
| 43 |
-MAILCHIMP_LIST_ID: |
|
| 44 |
-REDISTOGO_URL: |
|
| 45 |
-``` |
|
| 30 |
+ AWS_ACCESS_KEY_ID: |
|
| 31 |
+ AWS_SECRET_ACCESS_KEY: |
|
| 32 |
+ AWS_S3_BUCKET: |
|
| 33 |
+ AWS_S3_BUCKET_REGION: |
|
| 34 |
+ HEROKU_APP_URL: |
|
| 35 |
+ MANDRILL_USERNAME: |
|
| 36 |
+ MANDRILL_KEY: |
|
| 37 |
+ DOMAIN_NAME: |
|
| 38 |
+ SERVER_EMAIL: |
|
| 39 |
+ DEVISE_SECRET_KEY: |
|
| 40 |
+ SECRET_KEY_BASE: |
|
| 41 |
+ MAILCHIMP_KEY: |
|
| 42 |
+ MAILCHIMP_LIST_ID: |
|
| 43 |
+ REDISTOGO_URL: |
|
| 46 | 44 |
|
| 47 | 45 |
--------------- |
| 48 | 46 |
|
@@ -50,63 +48,58 @@ REDISTOGO_URL: |
||
| 50 | 48 |
# Avalanche2 Dev Notes |
| 51 | 49 |
|
| 52 | 50 |
## System Scaffolding |
| 53 |
- |
|
| 54 |
-```shell |
|
| 55 |
- |
|
| 56 |
-# Mission |
|
| 57 |
-rails g scaffold mission mission_agents:references title:string objective:string briefing:text owner:references status:integer launched:boolean |
|
| 58 |
-language:string cover_img:string |
|
| 59 |
- |
|
| 60 |
-# Mission Agents |
|
| 61 |
-rails g model mission_agent mission:references agent_steps:references mission_candidates:references objective:string briefing:text role:string |
|
| 62 |
-description:text user:references agent_number:integer debriefing:text |
|
| 63 |
- |
|
| 64 |
-# Mission Agent Steps |
|
| 65 |
-rails g model agent_step mission_agent:references step:integer title:string description:text completed:bool completed_date:datetime |
|
| 66 |
- |
|
| 67 |
-# Mission Agent Candidates |
|
| 68 |
-rails g model mission_candidate user:reference mission_agent:reference status:integer |
|
| 69 |
- |
|
| 70 |
-# Step Validations |
|
| 71 |
-rails g model step_validation agent_step:reference step_verifications:references mode:string description:string |
|
| 72 |
- |
|
| 73 |
-# Step Verifications |
|
| 74 |
-rails g model step_verification step_validation:references validated:boolean validated_by:references content:string |
|
| 75 |
- |
|
| 76 |
-# Validation Scaffolding |
|
| 77 |
-rails destroy model step_validation |
|
| 78 |
-rails destroy model step_verification |
|
| 79 |
-rails g migration AddStepSubmissionToAgentStep step_submissions:references |
|
| 80 |
- |
|
| 81 |
-# Step Validation |
|
| 82 |
-rails g model step_validation agent_step:references validation_id:integer validation_type |
|
| 83 |
- |
|
| 84 |
-# Text Validation |
|
| 85 |
-rails g model validation_text step_validation:references description |
|
| 86 |
- |
|
| 87 |
-# Step Submission |
|
| 88 |
-rails g model step_submission agent_step:reference submission_contents:references validated:boolean validated_by:references date_validated:datetime |
|
| 89 |
- |
|
| 90 |
-# Submission content |
|
| 91 |
-rails g model submission_content submission_content:references submission_id:integer submission_type |
|
| 92 |
- |
|
| 93 |
-# Text Submission |
|
| 94 |
-rails g model submission_text submission_content:references content accepted:boolean validation:references |
|
| 95 |
- |
|
| 96 |
-# Rewards |
|
| 97 |
-rails g model reward mission:references mission_agents:references title:string description:text img:string |
|
| 98 |
-rails g model user_reward reward:references user:references received:boolean date_received:datetime |
|
| 99 |
-rails g migration AddRewardsToMission rewards:references |
|
| 100 |
-rails g migration AddRewardsToMissionAgent rewards:references |
|
| 101 |
- |
|
| 102 |
- |
|
| 103 |
-``` |
|
| 51 |
+ |
|
| 52 |
+ # Mission |
|
| 53 |
+ rails g scaffold mission mission_agents:references title:string objective:string briefing:text owner:references status:integer launched:boolean |
|
| 54 |
+ language:string cover_img:string |
|
| 55 |
+ |
|
| 56 |
+ # Mission Agents |
|
| 57 |
+ rails g model mission_agent mission:references agent_steps:references mission_candidates:references objective:string briefing:text role:string |
|
| 58 |
+ description:text user:references agent_number:integer debriefing:text |
|
| 59 |
+ |
|
| 60 |
+ # Mission Agent Steps |
|
| 61 |
+ rails g model agent_step mission_agent:references step:integer title:string description:text completed:bool completed_date:datetime |
|
| 62 |
+ |
|
| 63 |
+ # Mission Agent Candidates |
|
| 64 |
+ rails g model mission_candidate user:reference mission_agent:reference status:integer |
|
| 65 |
+ |
|
| 66 |
+ # Step Validations |
|
| 67 |
+ rails g model step_validation agent_step:reference step_verifications:references mode:string description:string |
|
| 68 |
+ |
|
| 69 |
+ # Step Verifications |
|
| 70 |
+ rails g model step_verification step_validation:references validated:boolean validated_by:references content:string |
|
| 71 |
+ |
|
| 72 |
+ # Validation Scaffolding |
|
| 73 |
+ rails destroy model step_validation |
|
| 74 |
+ rails destroy model step_verification |
|
| 75 |
+ rails g migration AddStepSubmissionToAgentStep step_submissions:references |
|
| 76 |
+ |
|
| 77 |
+ # Step Validation |
|
| 78 |
+ rails g model step_validation agent_step:references validation_id:integer validation_type |
|
| 79 |
+ |
|
| 80 |
+ # Text Validation |
|
| 81 |
+ rails g model validation_text step_validation:references description |
|
| 82 |
+ |
|
| 83 |
+ # Step Submission |
|
| 84 |
+ rails g model step_submission agent_step:reference submission_contents:references validated:boolean validated_by:references date_validated:datetime |
|
| 85 |
+ |
|
| 86 |
+ # Submission content |
|
| 87 |
+ rails g model submission_content submission_content:references submission_id:integer submission_type |
|
| 88 |
+ |
|
| 89 |
+ # Text Submission |
|
| 90 |
+ rails g model submission_text submission_content:references content accepted:boolean validation:references |
|
| 91 |
+ |
|
| 92 |
+ # Rewards |
|
| 93 |
+ rails g model reward mission:references mission_agents:references title:string description:text img:string |
|
| 94 |
+ rails g model user_reward reward:references user:references received:boolean date_received:datetime |
|
| 95 |
+ rails g migration AddRewardsToMission rewards:references |
|
| 96 |
+ rails g migration AddRewardsToMissionAgent rewards:references |
|
| 97 |
+ |
|
| 104 | 98 |
|
| 105 | 99 |
## Undone Commands |
| 106 |
- |
|
| 107 |
-```shell |
|
| 108 |
- |
|
| 109 |
-``` |
|
| 100 |
+ |
|
| 101 |
+ # Mailers |
|
| 102 |
+ rails g mailer MissionMailer |
|
| 110 | 103 |
|
| 111 | 104 |
## To dos |
| 112 | 105 |
|
@@ -150,6 +143,14 @@ The *submission_content* class is also responsible for triggering the automatic |
||
| 150 | 143 |
|
| 151 | 144 |
---------------------- |
| 152 | 145 |
|
| 153 |
-Enviar imagens com os desenhos |
|
| 154 |
-Enviar uma imagem para cada tela do app |
|
| 155 |
-Espere a validação pelo diretor da missão |
|
| 146 |
+* Enviar imagens com os desenhos |
|
| 147 |
+* Enviar uma imagem para cada tela do app |
|
| 148 |
+* Espere a validação pelo diretor da missão |
|
| 149 |
+ |
|
| 150 |
+<!-- Highlight syntax for Mou.app, insert at the bottom of the markdown document --> |
|
| 151 |
+ |
|
| 152 |
+<script src="http://yandex.st/highlightjs/7.3/highlight.min.js"></script> |
|
| 153 |
+<link rel="stylesheet" href="http://yandex.st/highlightjs/7.3/styles/github.min.css"> |
|
| 154 |
+<script> |
|
| 155 |
+ hljs.initHighlightingOnLoad(); |
|
| 156 |
+</script> |